<?php
// +----------------------------------------------------------------------
// | 发布营销活动——数据提交到121.41.120.34
// +----------------------------------------------------------------------
// | Author: GuangpengChen <1031289030@qq.com>
// +----------------------------------------------------------------------
// | Date  : 2015/03/05
// +----------------------------------------------------------------------
// | table : pft_marketing
// +----------------------------------------------------------------------
include '/var/www/html/new/d/common/header.html';
include '/var/www/html/new/d/common/left.html';
?>
<link rel="stylesheet" href="http://www.12301.cc/css/aliceui.min.css"/>
<link rel="stylesheet" href="http://www.12301.cc/css/resetui.css"/>
<link rel="stylesheet" href="http://www.12301.cc/css/prod_store.css"/>
<script language="javascript" src="http://www.12301.cc/js/jquery-1.8.0.min.js"></script>
<script src="http://www.12301.cc/js/WdatePicker.js"></script>
<style>
    .all_money{display:none;}
    .tabHead{ padding-left:15px; overflow:hidden; border-bottom:2px solid #019be1}
    .tabHead li{ float:left; height:36px; line-height:36px; padding:0 25px; cursor:pointer; border-top-left-radius:2px; border-top-right-radius:2px;}
    .tabHead li.active{ background:#019be1; color:#fff}
    .allianceMod .pgIcon.add{ top:2px; margin-right:2px;}
    .allianceMod{ width:800px; float:right; font-family:'Avenir Next',Avenir,'Helvetica Neue',Helvetica,'Lantinghei SC','Hiragino Sans GB','Microsoft YaHei',"微软雅黑",STHeiti,'WenQuanYi Micro Hei',SimSun,sans-serif}
    .allianceMod .textInp{ height:26px; line-height:26px; border:1px solid #e5e5e5; padding:3px 5px; background:#fcfcfc}
    .allianceMod .tabPannel{ display:block;width:800px;position: relative;}
    .allianceMod .tabPannel .saveBtn{ border:0;display:block; width:160px; height:34px; line-height:34px; margin-left:150px;margin-top:20px; color:#fff; text-align:center; background:#098bc6;}
    .allianceMod .tabPannel .save{ display:block; cursor:not-allowed;width:160px; height:34px; line-height:34px; margin:50px auto; color:#fff; text-align:center; background:#E5E5E5;}
    .allianceMod .tabPannel .saveBtn:hover{ text-decoration:none; background:#098bc6}
    .allianceMod .tabHead{ padding-left:15px; overflow:hidden; border-bottom:2px solid #019be1}
    .allianceMod .tabHead li{ float:left; height:36px; line-height:36px; padding:0 25px; cursor:pointer; border-top-left-radius:2px; border-top-right-radius:2px;}
    .allianceMod .tabHead li.active{ background:#019be1; color:#fff}
    .allianceMod .tabPannel.profit #dropmsg_c {margin-left: 145px;}
    .allianceMod .tabPannel.profit .con{ padding:15px; padding-left:35px;  background:#fafafa; }
    .allianceMod .tabPannel.profit .con .timeico{ padding:15px; padding-left:35px;  background:#fafafa; }
    .allianceMod .tabPannel.profit .con select{ width:413px;height:35px;line-height:35px;margin-left: 16px; border:1px solid #e5e5e5; }
    .allianceMod .tabPannel.profit .con select#fans_group{ width:313px;height:35px;line-height:35px;margin-left: 13px; border:1px solid #e5e5e5; }
    .allianceMod .tabPannel.profit .con span.lt {width: 86px;display: inline-block;float: left;text-align: left;margin-top: 10px;}
    .allianceMod .tabPannel.profit .con span.dropmsg_a {margin-left: 100px;}
    .allianceMod .tabPannel.profit .con textarea{ width:565px;height:400px; background:#fafafa; resize: none;text-align: left;border:1px solid #e5e5e5;margin-left: 16px;}
    .allianceMod .tabPannel.profit .spcon{ display:inline-block; width:485px; margin-left:16px}
    .allianceMod .tabPannel.profit .spcon.last{ margin-left:0px}
    .allianceMod .tabPannel.profit .textInp{ width:50px; margin:0 4px}
    .allianceMod .tabPannel.profit .textInp.w400{ width:400px; text-align:left; margin-left:16px;}
    .allianceMod .tabPannel.profit .textInp.w175{ width:175px; text-align:left; margin-left:16px;}
    .allianceMod .tabPannel.profit .textInp.w100{ width:100px; text-align:left; margin-left:16px;}
    .allianceMod .line{ margin-top:13px;}
    .allianceMod .tabPannel.profit .calendarBtn{position: absolute;top: 1px;display: block;width: 25px;height: 25px;font-size: 0;background: url(http://www.12301.cc/images/icons/time_ico.png) no-repeat 0 0;}
    .allianceMod .tabPannel.profit .calendarBtn.c1 {left: 285px;top: 82px;}
    .allianceMod .tabPannel.profit .calendarBtn.c2 {left: 510px;top: 82px;}
    .allianceMod .line .textInp{ text-align:center; background:#fff}
    .allianceMod .line .group{ margin-right:5px;}
    .allianceMod .line .lt{ font-weight:bold}
    p.checkbox {width: 100px;float: left;margin-left: 110px;}
	label{  text-align: left;margin-left: 16px;}
	.radio_t{padding: 3px 5px;height:20px;line-height:20px;margin-top:5px;}
</style>
<ul id="tabHead" class="tabHead clearfix">
    <li class="profit active">创建分享活动</li>
</ul>
<div class="allianceMod">
    <div class="tabPannel profit">
        <form name="mainForm" id="mainForm" class="ui-form" method="post" action="http://121.41.120.34/pft/marketing/marketing.php" target="hideFrame"> <form name="mainForm" id="mainForm" class="ui-form" method="post" action="http://121.41.120.34/pft/marketing/marketing.php" target="hideFrame">
            <input type="hidden" name="fid" value="<?=$_SESSION['memberID']?>"/>
            <input type="hidden" name="action" value="create"/>
            <input name="auth" type="hidden" value="<?=md5('RFGrfgY5CjVP8LcYcreate');?>"/>
            <input type="hidden" name="thumb" id="showimgPathInp"/>
            <input type="hidden" name="activity_type" id="3"/>
            <input type="hidden" id="discount_type" name="discount_type" value="0"/>
            <fieldset>
                <div class="con">
                    <span class="lt">活动名称：</span>
                    <input value="<?=$name?>" id="alliNameInp" name="activity_name" class="textInp w400 alliNameInp" autocomplete="off" type="text"  id=""/>
                </div>
                <div class="con">
                    <span class="lt">活动时间：</span>
                    <input type="text" data-t="bt" id="txtStartTime"  name="bt" data-msg="请选择时间段" class="textInp w175 alliNameInp" autocomplete="off"/> 至
                    <input type="text" data-t="et" id="txtEndTime"  name="et" data-msg="请选择时间段" class="textInp w175 alliNameInp" autocomplete="off"/>
                </div>
                <i class="calendarBtn c1"></i>
                <i class="calendarBtn c2"></i>
                <div class="con">
                    <span class="lt">分享类型：</span>
                    <select name="activity_type" size="1" class="dis_select" id="goods_style">
                        <option value="1" selected="selected">分享送优惠券</option>
                        <option value="2">分享送红包</option>
                    </select>
                </div>
				<div class="con">
                    <span class="lt">优惠券ID：</span>
                    <input type="number" min="1" id="coupon_id" name="coupon_id" autocomplete="off" class="textInp w400 alliNameInp" />
                </div>
                <div class="con">
                    <span class="lt">分享内容：</span>
                </div>
                <div class="con">
                    <textarea id="content" name="content"></textarea>
                </div>
            </fieldset>
        </form>
        <form id="imgUpload_form" class="page-type-new" action="http://s.12301.cc/pft/marketing/marketing.php" method="post" enctype="multipart/form-data" target="hideFrame">
            <div class="con" style="position: relative;">
                <input name="auth" type="hidden" value="<?=md5('RFGrfgY5CjVP8LcYupload');?>"/>
                <input name="imgUpload_fileVal" value="upload" type="hidden"/>
                <input name="action" value="upload" type="hidden"/>
                <input name="in" value="1" type="hidden"/>
                <input action="upload" value="" type="hidden"/>
                <span class="lt">缩略图：</span>
                <a class="lnk_prv" target="_blank" title="点击查看原图" >
                    <img style="width:240px;height:160px;" id="discount_img" src="" class="preview" onerror="javascript:this.src='http://www.12301.cc/images/defaultThum.jpg'" />
                </a>
                <div class="uploadImg">
                    <p class="title">重新上传缩略图：</p>
                    <input type="file" id="imgUpload_inpFile" name="image"/>
                    <input type="button" id="submitImgUploadBtn" value="上传" class="ui-button ui-button-swhite"/>
                    <p class="ui-form-explain">点击上传小于1M的JPG或GIF格式的图片,<br/>建议图片尺寸：宽350像素，高230像素</p>
                    <p class="waitingUpload" class="ui-form-other"></p>
                    <div id="uploadResultCon"></div>
                    <div id="uploadFailTip"></div>
                </div>
            </div>
        </form>
        <div class="con save_d"><button class="saveBtn" id="saveProduct" data-wrap="ticketBox" type="button">保持</button></div>
    </div>
</div>
</div>
</div><!--div.wrapper-->
<iframe src="about:blank" style="display: none;" id="hideFrame" name="hideFrame" frameborder="0"></iframe>
<!--<script type="text/javascript" src="http://www.12301.cc/js/prod_editk_discount.js?body=1"></script>-->
<script type="text/javascript" src="http://www.12301.cc/js/discount_img.js"></script>
    <script type="text/javascript" charset="utf-8" src="http://www.12301.cc/ue/ueditor_config_mini.js"></script>
    <script type="text/javascript" src="http://www.12301.cc/ue/ueditor.all.min.js"></script>
    <script>
        var ue, rend_text_area;
        if($("#content").length){
            window.UEDITOR_CONFIG.initialFrameWidth = 640;
            rend_text_area = $("#content");
            ue = UE.getEditor('content');
        }
    </script>
<?php include 'common/footer.html';?>